← Index
NYTProf Performance Profile   
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:51 2015

Filename(eval 75)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 23 statements in 1.18ms
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4, 5, 6
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
2222.64ms3.34msCGI::::cookieCGI::cookie
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 3.34ms (2.64+692µs) within CGI::cookie which was called 2 times, avg 1.67ms/call: # once (2.61ms+471µs) by C4::Auth::check_api_auth at line 895 of CGI.pm # once (33µs+221µs) by C4::Auth::check_api_auth at line 1226 of C4/Auth.pm
package CGI; sub cookie {
227µs29µs my($self,@p) = self_or_default(@_);
# spent 9µs making 2 calls to CGI::self_or_default, avg 5µs/call
3210µs297µs my($name,$value,$path,$domain,$secure,$expires,$httponly) =
# spent 97µs making 2 calls to CGI::Util::rearrange, avg 48µs/call
4 rearrange([NAME,[VALUE,VALUES],PATH,DOMAIN,SECURE,EXPIRES,HTTPONLY],@p);
5
621.13ms require CGI::Cookie;
7
8 # if no value is supplied, then we retrieve the
9 # value of the cookie, if any. For efficiency, we cache the parsed
10 # cookies in our state variables.
112800ns unless ( defined($value) ) {
1214µs1130µs $self->{'.cookies'} = CGI::Cookie->fetch;
# spent 130µs making 1 call to CGI::Cookie::fetch
13
14 # If no name is supplied, then retrieve the names of all our cookies.
151400ns return () unless $self->{'.cookies'};
161200ns return keys %{$self->{'.cookies'}} unless $name;
1712µs154µs return () unless $self->{'.cookies'}->{$name};
# spent 54µs making 1 call to CGI::Cookie::as_string
1814µs11µs return $self->{'.cookies'}->{$name}->value if defined($name) && $name ne '';
# spent 1µs making 1 call to CGI::Cookie::value
19 }
20
21 # If we get here, we're creating a new cookie
221800ns return undef unless defined($name) && $name ne ''; # this is an error
23
241200ns my @param;
2511µs push(@param,'-name'=>$name);
261900ns push(@param,'-value'=>$value);
271300ns push(@param,'-domain'=>$domain) if $domain;
281300ns push(@param,'-path'=>$path) if $path;
291200ns push(@param,'-expires'=>$expires) if $expires;
301100ns push(@param,'-secure'=>$secure) if $secure;
3111µs push(@param,'-httponly'=>$httponly) if $httponly;
32
33112µs1127µs return CGI::Cookie->new(@param);
# spent 127µs making 1 call to CGI::Cookie::new
34}
35
36;